package pkg;


import java.util.ArrayList;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import pkg.tenproject.gest.HandFiles.HandleFilesConnection;


@WebService(endpointInterface = "pkg.MyService")  
public class MyServiceImpl implements MyService {  
  
    @Override  
    public String sayHello(String name) {  
        return "Hello " + name + "!";  
    }

	@Override
	public ArrayList<String> sayHelloWorld(String nome) {
		// TODO Auto-generated method stub
		ArrayList<String> s= new ArrayList<String>();
		s.add("Pippox");
		s.add("Plutsso");
		s.add("Paperino");
		s.add("Topolino");
		return s;
	}
	@Override
	public String sayHelloPier(String nome) {
		// TODO Auto-generated method stub
		return "Hello Pier";
	}
	@Override
	public String sayHelloPier1(String nome) {
		// TODO Auto-generated method stub
		return "Hello Pier1";
	}
	@Override
	public boolean setConnectionData(String connectionString,
			String login, String password, String driver) {
		// TODO Auto-generated method stub
		HandleFilesConnection h = new HandleFilesConnection();
		boolean esito = h.writeDBFile(connectionString, login, password, driver);
		return esito;
	}  
} 
